package elevatorsimulator;

/**
 * Creates the elevator door object
 */
public class ElevatorDoor {
    boolean lockedOutModeStatus;
    boolean doorStatus;

    /**
     * Elevator Door Constructor  initialising door status to shut
     */
    public ElevatorDoor() {
        doorStatus = false; //false = shut
    }

    /**
     * Returns the door status
     */
    public boolean getDoorStatus() {
        return doorStatus;
    }

    /**
     * Sets the door status
     */
    public void setDoorStatus(boolean doorStatus) {
        this.doorStatus = doorStatus;
    }

    /**
     * Returns whether the door has been locked out, due to movement
     */
    public boolean getLockedOutModeStatus() {
        return lockedOutModeStatus;
    }

    /**
     * Sets the door to either locked out/not locked  out status
     */
    public void setLockedOutModeStatus(boolean lockedOutModeStatus) {
        this.lockedOutModeStatus = lockedOutModeStatus;
    }


}
